<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsp/jstl/core" xml:lang="en" lang="en">

<ui:composition>
        <table align="right" class="languagePanel">
            <tr>
                <ui:repeat value="#{localizer.supportedLocales}" var="locale">
                    <c:set var="class" value="#{locale.language eq localizer.locale.language ? 'selectedLang' : 'unselectedLang'}"/>
                    <td width="50px"
                        class="langCell #{class}">
                        <h:commandLink value="#{locale.getDisplayLanguage(locale)}"
                                       action="#{timeViewBean.changeUserLanguage(locale.language)}"
                                       style="text-decoration:none;color:black;"
                                       immediate="true"/>
                    </td>
                </ui:repeat>
            </tr>
            <tr>
                <td colspan="#{localizer.supportedLocales.size()}" style="padding-top:10px;padding-right:20px;">
                    <h:commandLink value="#{localizer.localized('LOGOUT')}"
                                   action="#{loginViewBean.logout}"
                                   rendered="#{appSecurityManager.loggedIn}"
                                   style="text-decoration:none;color:black;"
                                   immediate="true"/>
                </td>
            </tr>
        </table>
</ui:composition>

</html>